package com.five.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("gxa_brand")
public class Brand implements java.io.Serializable{

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 品牌名称
     */
    @NotBlank(message = "品牌名称不能为空")
    private String brandName;

    /**
     * 品牌描述
     */
    private String description;

    /**
     * 品牌Logo图片ID
     */
    private String logo;

//    /**
//     * 品牌状态
//     * 0: 禁用 1: 启用
//     */
//    private Integer status = 1;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime = LocalDateTime.now();

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime = LocalDateTime.now();
}
